<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const m1 = (left, right) => {
        left = left.__proto__
        right = right.prototype
        console.log("原型链：", left, "  原型：", right)
        while (true) {
            if (left === null) return false
            if (left === right) {
                console.log('left:', left,"right:" , right )
                return true
            }
            left = left.__proto__
        }
    }

    // String.__proto__.__proto__ 和 Object.prototype 相等
    console.log("instanceof:", m1(String, Object))
</script>
</body>
</html>
